/*
 * Copyright 2016-2019 yoara
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package yhao.infra.feature.payment.core.alipaynew.model.refund;

/**
 * 支付退款封装类
 *
 * @author yoara
 */
public class AliRefundModel {
    private String out_trade_no;//支付时传入的商户订单号,即我方订单id，与trade_no必填一个
    private String trade_no;//支付时返回的支付宝交易号，与out_trade_no必填一个
    private String out_request_no;//本次退款请求流水号，部分退款时必传
    private String refund_amount;//本次退款金额
    private String reason;         //原因

    public AliRefundModel(String out_trade_no, String trade_no, String out_request_no, String refund_amount) {
        this.out_trade_no = out_trade_no;
        this.trade_no = trade_no;
        this.out_request_no = out_request_no;
        this.refund_amount = refund_amount;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public String getTrade_no() {
        return trade_no;
    }

    public void setTrade_no(String trade_no) {
        this.trade_no = trade_no;
    }

    public String getOut_request_no() {
        return out_request_no;
    }

    public void setOut_request_no(String out_request_no) {
        this.out_request_no = out_request_no;
    }

    public String getRefund_amount() {
        return refund_amount;
    }

    public void setRefund_amount(String refund_amount) {
        this.refund_amount = refund_amount;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
